
import 'package:flutter_enjoy_plus/constants/index.dart';

import '../utils/RequestDio.dart';
// 获取验证码
Future getCodeApi(phone) => requestDio.get(HTTP_PATH.GET_CODE,params: phone);
// 登录/注册
Future loginApi(date) => requestDio.post(HTTP_PATH.LOGIN,data: date);
// 获取用户信息
Future getUserInfoApi() => requestDio.get(HTTP_PATH.GET_USER_INFO);
// 修改用户信息
Future updateUserInfoApi(date) => requestDio.put(HTTP_PATH.GET_USER_INFO,data: date);
// 上传图片或头像
Future uploadImageApi(date) => requestDio.update(HTTP_PATH.UPLOAD_IMG,data: date);